package it.polito;

import java.util.List;
import java.util.Vector;

public class Professor extends Person {

private Integer matricProf;
private String role;
private Vector teach;
public List<Exam>  myExam;
  
  public List<Course>  mycourse;

public Professor(String firstName, String familyName, boolean gender,
		Indirizzo residenza, Indirizzo domicilio, int phone, String codF,
		Integer matriculaEmployee, String role, Vector teach) {
	super(firstName, familyName, gender, residenza, domicilio, phone, codF);
	this.matricProf = matriculaEmployee;
	this.role = role;
	this.teach = teach;
}

public Integer getMatricProf() {
	return matricProf;
}

public void setMatricProf(Integer matricProf) {
	this.matricProf = matricProf;
}

public Vector getTeach() {
	return teach;
}

public void setTeach(Vector teach) {
	this.teach = teach;
}

public String getRole() {
	return role;
}

public void setRole(String role) {
	this.role = role;
}

public Exam getMyExam(String codEsame, Date data) {
		Exam trovato=null;
		for(Exam e : myExam){
			if(e.getMyDate().equals(data) && e.getMycourse().getCodeCourse().equalsIgnoreCase(codEsame) ){
				trovato=e;
			}
		}
		return trovato;
	}

public List<Exam> getMyExam() {
		return myExam;
	}
	public void setMyExam(List<Exam> myExam) {
		this.myExam = myExam;
	}
	public List<Course> getMycourse() {
		return mycourse;
	}
	public void setMycourse(List<Course> mycourse) {
		this.mycourse = mycourse;
	}

}
